#include "stdafx.h"
#include "Material.h"
#include <fstream>
#include "ShaderContainer.h"
#include "GraphicsManager.h"
#include "Texture2D.h"
#include "IGrahpicsResource.h"
#include "TextureCube.h"

using namespace std;

/*static*/ const int Material::numTextures = NUM_TEXTURES;

Material::Material(void)
{
	memset(this, 0, sizeof(Material));
}

Material::~Material(void)
{
	for (unsigned int i = 0; i < NUM_TEXTURES; i++)
		delete textures.e[i];
	
	if (shaderContainer)
		delete shaderContainer;
}